package com.easy.dao;

import com.easy.bean.Guests;
import com.easy.util.Page;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface IGuestsDao {

    //添加
    int addGuests(Guests guests);

    //获取
    Guests getGuests(int id);
    //删除
    int delGuests(Guests guests);

    int del(int id);
    //修改
    int editGuests(Guests guests);

    int editGuests_check(Guests guests);

    int edit(@Param("id") int id, @Param("guests")Guests guests);

    //查询
    List<Guests> getSearchGuests(Guests guests);

    List<Guests> getSearchGuests(@Param("guests") Guests guests, @Param("page") Page page);

    int getCount(@Param("guests")Guests guests);



}
